<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title>菜鸟教程(runoob.com)</title> 
<style>
.center
{
	text-align:center;
}
#para1
{
	text-align:left;
	color:red;
}
</style>
</head>

<body>
<h1 id="para1", class="center">标题居中</h1>
<p class="center">段落居中。</p> 
</body>
</html>